import Vue from "vue"
const EventBus = new Vue()
Vue.prototype.$once = function (eventName, callback = ()=> {}) {
  EventBus.$off(eventName)
  EventBus.$on(eventName, callback)
  return EventBus
}

export default EventBus

